<%= select(:error, :status, ['new', 'accepted', 'resolved','closed']) %>
<script type="text/javascript">
//<![CDATA[
new Form.Element.EventObserver('error_status', 
	function(element, value) {
		new Ajax.Updater('status', '/errors/update_status', 
		   {asynchronous:true, evalScripts:true, parameters:'id=<%=@error.id%>&status='+value}
		   )
		   $('error_status').insert({after: ' updating...'})
		}
		
	)
//]]>
</script>


